package cn.wolfcode.cumser._01_cunser;

import org.apache.rocketmq.common.message.MessageExt;
import org.apache.rocketmq.spring.annotation.MessageModel;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component

@RocketMQMessageListener(

        topic = "01-boot",

        consumerGroup = "wolfcode-consumer"
       // , messageModel = MessageModel.CLUSTERING

)
public class cumser implements RocketMQListener<String>{


    @Override
    public void onMessage(String s) {
        System.out.println("消费消息"+s);
    }
}
